/* 订单页面容器 */
.orders-container {
    padding: 2rem 0;
}

/* 页面标题 */
.page-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

/* 订单筛选 */
.order-filters {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.filter-section {
    display: flex;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.filter-btn.active {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
    min-width: 300px;
}

.search-box form {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.search-box button {
    padding: 0.5rem 1rem;
    border: none;
    background: #4CAF50;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: #45a049;
}

.search-box button i {
    font-size: 1rem;
}

/* 订单列表 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-number {
    color: #666;
    font-size: 0.9rem;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.status-unpaid {
    background: #fff3e0;
    color: #ff9800;
}

.status-unused {
    background: #e3f2fd;
    color: #2196f3;
}

.status-completed {
    background: #e8f5e9;
    color: #4caf50;
}

.status-cancelled {
    background: #ffebee;
    color: #f44336;
}

.status-pending {
    color: #ff9800;
}

.status-certain {
    color: #4caf50;
}

.order-content {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
}

.order-image {
    width: 200px;
    height: 150px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-info {
    flex: 1;
    padding: 10px 0;
}

.order-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.order-details {
    margin: 8px 0;
    color: #666;
    line-height: 1.6;
}

.order-price {
    color: #f44336;
    font-weight: bold;
    font-size: 1.1rem;
}

.order-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.order-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: #4CAF50;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.btn-danger {
    background: #fff;
    color: #f44336;
    border: 1px solid #f44336;
}

.btn-danger:hover {
    background: #f44336;
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: #4CAF50;
    color: #4CAF50;
}

.page-btn.active {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.page-btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-filters {
        flex-direction: column;
    }
    
    .filter-sections {
        width: 100%;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .search-box {
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
        min-width: auto;
    }
    
    .search-box form {
        width: 100%;
    }
    
    .order-content {
        flex-direction: column;
    }
    
    .order-image {
        width: 100%;
        height: 200px;
    }
    
    .order-info {
        padding: 0;
    }
    
    .order-footer {
        flex-direction: column;
    }
    
    .order-btn {
        width: 100%;
    }
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #ff4d4f;
    font-size: 16px;
} 